package util;

import agents.MasterAgent;

public class TenderTimer extends Thread {
	
	private MasterAgent agent=null;
	private int timerLength = 2500;
	
	public TenderTimer(MasterAgent agent) {
		this.agent=agent;
	}
	
	public TenderTimer(MasterAgent agent, int timerLength) {
		this.agent=agent;
		this.timerLength=timerLength;
	}

	@Override
	public void run() {
		if(agent==null) 
			return;
		agent.proposalTimer(timerLength);
	}
}
